package com.mayikt.loadbalance;

import org.springframework.cloud.client.ServiceInstance;

import java.util.List;

/**
 * @program: mayikt-springcloud-alibaba
 * @description
 * @author: tianya
 * @create: 2020-05-22 16:14
 **/
public interface LoadBalancer {
    /**
     * 从注册中心集群列表中获取单个地址
     * @param serviceInstances
     * @return
     */
    ServiceInstance getSingleAddress(List<ServiceInstance> serviceInstances);
}
